export const tableOption = {
  border: true, //是否带有纵向边框
  selection: true, //行最前面的选择框
  menuAlign: "center",
  // labelWidth: 110,//设置列名称长度
  // searchLabelWidth: 110,//搜索按钮是否单独成行，并控制搜索按钮的长度
  searchIndex: 4, //筛选收缩
  searchIcon: true,
  align: "center", //对齐方式
  emptyText: '自定义暂无数据提示语',
  column: [
    {
      label: "ID",
      prop: "addrId",
      type: "input",
      hide: true,
      editDisabled: true,
      editDisplay: false,
      addDisplay: false,
      span: 12
    },
    {
      label: "用户ID",
      prop: "userId",
      type: "input",
      search: true,
      span: 12
    },
    {
      label: "手机",
      prop: "mobile",
      type: "input",
      search: true,
      span: 12
    },
    {
      label: "是默认地址",
      prop: "isDefault",
      type: 'switch',
      dicData: [{
        label: '是',
        value: true
      }, {
        label: '否',
        value: false
      }],
      search: true,
      value: true,
      span: 12
    },
    {
      label: "收货人",
      prop: "consignee",
      type: "input",
      span: 12
    },
    {
      label: "省",
      prop: "provinceId",
      type: 'select',
      cascader: ['cityId'],
      cascaderIndex: 0,
      dicUrl: `/admin/region/getProvince`,
      props: {
        label: 'name',
        value: 'regionCode'
      },
      search: true,
      span: 12
    },
    {
      label: "城市",
      prop: "cityId",
      type: 'select',
      cascader: ['areaId'],
      cascaderIndex: 0,
      dicUrl: `/admin/region/getCity/{{key}}`,
      props: {
        label: 'name',
        value: 'regionCode'
      },
      search: true,
      span: 12
    },
    {
      label: "区",
      prop: "areaId",
      type: 'select',
      dicUrl: `/admin/region/getArea/{{key}}`,
      props: {
        label: 'name',
        value: 'regionCode'
      },
      search: true,
      span: 12
    },
    {
      label: "邮编",
      prop: "postCode",
      type: "input",
      span: 12
    },
    {
      label: "地址",
      prop: "addr",
      type: "input",
      span: 12
    },
    {
      label: "经度",
      prop: "lng",
      type: "input",
      span: 12
    },
    {
      label: "纬度",
      prop: "lat",
      type: "input",
      span: 12
    },
  ]
}
